package graphic;

/**
 * @author ZhangyiA
 * @describe: include vertexFrom , vertexTo
 * @date 2021/06/17
 */

public class Edge {

    private int vertexFrom;
    private int vertexTo;
    private int label;
    private int next;
    private int id;

    public Edge(){}

    public Edge(int vertexFrom , int vertexTo , int label , int id){
        this.vertexFrom = vertexFrom;
        this.vertexTo = vertexTo;
        this.label = label;
        this.next = -1;
        this.id = id;
    }

    public int getVertexFrom() {
        return vertexFrom;
    }

    public void setVertexFrom(int vertexFrom) {
        this.vertexFrom = vertexFrom;
    }

    public int getVertexTo() {
        return vertexTo;
    }

    public void setVertexTo(int vertexTo) {
        this.vertexTo = vertexTo;
    }

    public int getLabel() {
        return label;
    }

    public void setLabel(int label) {
        this.label = label;
    }

    public int getNext() {
        return next;
    }

    public void setNext(int next) {
        this.next = next;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Edge{" +
                "vertexFrom=" + vertexFrom +
                ", vertexTo=" + vertexTo +
                ", label=" + label +
                ", next=" + next +
                '}';
    }
}
